package com.zsc.wxm.ysh.anjo.member.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zsc.wxm.ysh.anjo.service.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 描述：权限实体
 *
 * @author playmaker
 * @since 2021/2/1 22:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Permission对象", description="权限实体")
public class Permission extends BaseModel {

    @ApiModelProperty("权限名称")
    private String name;

    @ApiModelProperty("菜单类型：1菜单，2按钮")
    private Integer type;

    @ApiModelProperty("权限值")
    private Integer permissionValue;

    @ApiModelProperty("访问路径")
    private String path;

    @ApiModelProperty("组件路径")
    private String component;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("状态：0禁用，1正常")
    private Integer status;

    @ApiModelProperty("逻辑删除：0未删除，1已删除")
    @TableField("is_deleted")
    private Boolean deleted;
}
